package com.ps.dao.setting;

import java.util.List;
import org.hibernate.LockMode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.ps.dao.BaseDaoSupport;
import com.ps.pojo.setting.UnqueNumber;

/**
 * A data access object (DAO) providing persistence and search support for
 * UnqueNumber entities. Transaction control of the save(), update() and
 * delete() operations can directly support Spring container-managed
 * transactions or they can be augmented to handle user-managed Spring
 * transactions. Each of these methods provides additional information for how
 * to configure it for the desired type of transaction control.
 * 
 * @see com.ps.pojo.setting.UnqueNumber
 * @author MyEclipse Persistence Tools
 */

public class UnqueNumberDAO extends BaseDaoSupport<UnqueNumber> {

	// property constants
	public static final String NAME = "name";
	public static final String NAME_CODE = "nameCode";
	public static final String PREFIX = "prefix";
	public static final String CODE_VALUE = "codeValue";
	public static final String SUFFIX = "suffix";
	public static final String CODE_MAX_LENGH = "codeMaxLengh";

	protected void initDao() {
		// do nothing
	}


	public static UnqueNumberDAO getFromApplicationContext(
			ApplicationContext ctx) {
		return (UnqueNumberDAO) ctx.getBean("UnqueNumberDAO");
	}
}